include Makefile.inc

DEBUG ?= yes
BUILD ?= linux

.PHONY = all
all:
	@$(MAKE) -s -C source/ BUILD=$(BUILD) DEBUG=$(DEBUG) DIR_PREFIX=..

.PHONY = test
test: all
	@$(MAKE) -s -C test/ BUILD=$(BUILD) DEBUG=$(DEBUG) DIR_PREFIX=..

.PHONY = clean
clean:
	@$(MAKE) -s -C source/ BUILD=$(BUILD) DIR_PREFIX=.. clean
	@$(MAKE) -s -C test/ BUILD=$(BUILD) DIR_PREFIX=.. clean
	@$(RM) -f lib/*.a
	@$(RM) -f bin/*.dll
	@$(RM) -f bin/*.so
